using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Web.Mvc;
using InfoTech.Core.Service;
using InfoTech.LanTranh.MucVu.Bussiness;

namespace InfoTech.LanTranh.MucVu.Service
{
    public class HOANCANHKINHTEService : BaseService
    {
        public static bool Check_Insert_HOANCANHKINHTE(HOANCANHKINHTE hoancanhkinhte)
        {
            return true;
        }

        public static bool Check_Update_HOANCANHKINHTE(HOANCANHKINHTE hoancanhkinhte)
        {
            return true;
        }

        public static bool Check_Delete_HOANCANHKINHTE(string[] strings)
        {
            return true;
        }

        public static IEnumerable<SelectListItem> Get_List()
        {
            DataContext dataConText = CreateDataContext();
            return
                dataConText.GetTable<HOANCANHKINHTE>().OrderBy(c => c.PRIORITY).Select(
                    c => new SelectListItem() { Text = c.TENHOANCANHKINHTE, Value = c.MAHOANCANHKINHTE + "" });
        }
    }
}
